package chixing.day17.work;

public class Product {
    //proId（物资编号）
    //proNname（物资名称）
    //proSupplier（供应商）
    //proStock（库存数量）
    private Integer proId;
    private String proNname;
    private String proSupplier;
    private int proStock;
    public Product(Integer proId, String proNname, String proSupplier, int proStock){
        this.proId = proId;
        this.proNname = proNname;
        this.proSupplier = proSupplier;
        this.proStock = proStock;
    }
    public Product() {}

    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public String getProNname() {
        return proNname;
    }

    public void setProNname(String proNname) {
        this.proNname = proNname;
    }

    public String getProSupplier() {
        return proSupplier;
    }

    public void setProSupplier(String proSupplier) {
        this.proSupplier = proSupplier;
    }

    public int getProStock() {
        return proStock;
    }

    public void setProStock(int proStock) {
        this.proStock = proStock;
    }

    @Override
    public String toString() {
        return "Product{" +
                "proId=" + proId +
                ", proNname='" + proNname + '\'' +
                ", proSupplier='" + proSupplier + '\'' +
                ", proStock=" + proStock +
                '}';
    }
}
